<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="ja-JP">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
  <meta http-equiv="Content-Language" content="ja-JP">
<title>setup.rb $B$r;H$C$?%W%m%0%i%`$N%$%s%9%H!<%k(B</title>
</head>
<body>

<h1>setup.rb $B$r;H$C$?%W%m%0%i%`$N%$%s%9%H!<%k(B</h1>
<p>
$B$3$NJ8=q$G$O%(%s%I%f!<%6$,(B setup.rb $B$r;H$C$F(B
$B%Q%C%1!<%8$r%$%s%9%H!<%k$9$kJ}K!$r@bL@$7$^$9!#(B
</p>
<h2>$B:G$bC1=c$JJ}K!(B</h2>
<p>
$BDL>o$O<!$N$h$&$KBG$D$@$1$G==J,$G$9!#(B
$B!J(BUNIX $B7O(B OS $B$G$O$*$=$i$/%9!<%Q!<%f!<%68"8B$,I,MW$G$9!K(B
</p>
<pre>
($ su)
 # ruby setup.rb
</pre>
<p>
$B<+J,$N%[!<%`%G%#%l%/%H%j0J2<$K%$%s%9%H!<%k$7$?$$$H$-$O(B
$B<!$N$h$&$K$7$F$/$@$5$$!#(B
</p>
<pre>
$ ruby setup.rb all --prefix=$HOME
</pre>
<h2>$B%$%s%9%H!<%k$N>\:Y(B</h2>
<p>
$B0J2<!"$b$&>/$7>\:Y$K@bL@$7$^$9!#(B
</p>
<p>
setup.rb $B$G$O%$%s%9%H!<%k$N%W%m%;%9$,!V(Bconfig$B!W!V(Bsetup$B!W!V(Binstall$B!W(B
$B$N;0$D$NCJ3,$KJ,$+$l$F$$$^$9!#(Bsetup.rb $B$r0z?t$J$7$G<B9T$9$k$H(B
config setup install $B$r0l5$$K<B9T$7$F$7$^$&$N$G$9$,!"<!$N$h$&$K(B
$B$9$k$H;0$D$KJ,$1$F<B9T$G$-$^$9!#(B
</p>
<pre>
$ ruby setup.rb config
$ ruby setup.rb setup
# ruby setup.rb install
</pre>
<p>
$B$=$7$F3FCJ3,$K%*%W%7%g%s$rIU$1$k$H%$%s%9%H!<%k@h$J$I$r:Y$+$/@)8f(B
$B$9$k$3$H$,$G$-$^$9!#Nc$($P(B config $B$K!V(B--bin-dir=$HOME/bin$B!W%*%W(B
$B%7%g%s$rIU$1$k$H%3%^%s%I$,(B $HOME/bin $B$K%$%s%9%H!<%k$5$l$^$9!#(B
</p>
<p>
$B>\$7$/$O!V%?%9%/%*%W%7%g%s!W$N@a$r8+$F$/$@$5$$!#(B
</p>
<h2>$B%0%m!<%P%k%*%W%7%g%s(B</h2>
<p>
$B%0%m!<%P%k%*%W%7%g%s$H$O!"%?%9%/(B (config $B$d(B setup) $B$K4X$i$:(B
$B;XDj$G$-$k%*%W%7%g%s$N$3$H$G$9!#I,$:%?%9%/$NA0$K;XDj$7$F$/$@$5$$!#(B
</p>
<dl>
<dt>-q,--quiet</dt>
<dd><p>
$B%a%C%;!<%8=PNO$r:G>.8B$K$9$k(B
</p>
</dd>
<dt>--verbose</dt>
<dd><p>
$B<B9TCf$N>u67$r>\:Y$KI=<($9$k(B ($B%G%U%)%k%H$O%*%s(B)
</p>
</dd>
<dt>-h,--help</dt>
<dd><p>
setup.rb $B$N;H$$$+$?$J$I$rI=<((B
</p>
</dd>
<dt>-v,--version</dt>
<dd><p>
setup.rb $B$N%P!<%8%g%s$rI=<((B
</p>
</dd>
<dt>--copyright</dt>
<dd><p>
setup.rb $B$NCx:n8"$rI=<((B
</p>
</dd>
</dl>
<h2>$B%?%9%/(B</h2>
<p>
$B%?%9%/$O0J2<$N<7$D$G$9!#(B
</p>
<dl>
<dt>all</dt>
<dd><p>
config, setup, install $B$r0l5$$K9T$&!#(B
$B%?%9%/%*%W%7%g%s$O(B config $B$H6&DL!#(B
</p>
</dd>
<dt>config</dt>
<dd><p>
$B@_Dj$r%A%'%C%/$7$?$&$($GJ]B8$9$k(B
</p>
</dd>
<dt>show</dt>
<dd><p>
$B8=:_$N@_Dj$rI=<($9$k(B
</p>
</dd>
<dt>setup</dt>
<dd><p>
$B%3%s%Q%$%k$J$I!"%U%!%$%kFbMF$NJQ99$r9T$&$b$N(B
</p>
</dd>
<dt>install</dt>
<dd><p>
$B%$%s%9%H!<%k$r9T$&!#(B
</p>
</dd>
<dt>test</dt>
<dd><p>
$B%F%9%H$r<B9T$9$k!#(B
</p>
</dd>
<dt>clean</dt>
<dd><p>
setup $B$G:n@.$7$?$b$N$r>C$9(B
</p>
</dd>
<dt>distclean</dt>
<dd><p>
setup $B$G:n@.$7$?$b$N$r>C$9(B ($B$h$j6/NO(B)
</p>
</dd>
</dl>
<h2>config/all $B$N%?%9%/%*%W%7%g%s(B</h2>
<p>
config $B%?%9%/$G;H$($k%*%W%7%g%s$r@bL@$7$^$9!#(B
</p>
<p>
$BCM$r<h$k%*%W%7%g%s$O$9$Y$F(B --opt=value $B$N7A$G;XDj$7$^$9!#(B
$B!V(B=$B!W$N$^$o$j$K6uGr$rF~$l$F$O$$$1$^$;$s!#3F%*%W%7%g%s$N(B
$B%G%U%)%k%HCM$O(B ruby setup.rb --help $B$G8+$i$l$^$9!#(B
</p>
<p>
$B$9$Y$F$N%*%W%7%g%s$G!"CM$KJL$NJQ?t$r;H$&$3$H$,$G$-$^$9!#(B
$BNc$($P(B Ruby $B%i%$%V%i%j$r(B site_ruby $B$K%$%s%9%H!<%k(B
$B$7$?$1$l$P!"(B--rbdir=$siterubyver $B$H;XDj$G$-$^$9!#(B
UNIX $B%7%'%k$G$O!V(B$$B!W$r%(%9%1!<%W$7$F(B --rbdir=\$siterubyver
$B$H$7$F$/$@$5$$!#(B
</p>
<dl>
<dt>--installdirs=(std|site|home)</dt>
<dd><p>
$B$h$/;H$o$l$k%$%s%9%H!<%k@h%G%#%l%/%H%j$r(B
$B$^$H$a$F%;%C%H$9$k%*%W%7%g%s!#(B
</p>
<p>
std: $libruby $B0J2<$K%$%s%9%H!<%k$9$k!#(B
</p>
<p>
site: $siteruby $B0J2<$K%$%s%9%H!<%k$9$k!#(B
</p>
<p>
home: $B%[!<%`%G%#%l%/%H%j2<$K%$%s%9%H!<%k$9$k!#(B
</p>
</dd>
<dt>--prefix=PATH</dt>
<dd><p>
$bindir, $libdir $B$J$I$N6&DLItJ,(B
</p>
</dd>
<dt>--bindir=PATH</dt>
<dd><p>
$B<B9T2DG=%U%!%$%k!J%3%^%s%I!K$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--rbdir=PATH</dt>
<dd><p>
Ruby $B%i%$%V%i%j$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--sodir=PATH</dt>
<dd><p>
Ruby $B$N3HD%%b%8%e!<%k$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--datadir=PATH</dt>
<dd><p>
$B$=$NB>$N%G!<%?%U%!%$%k$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--sysconfdir=PATH</dt>
<dd><p>
$B@_Dj%U%!%$%k$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--mandir=PATH</dt>
<dd><p>
man $B%Z!<%8$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j!#(B
</p>
</dd>
<dt>--libruby=PATH</dt>
<dd><p>
Ruby $B%i%$%V%i%j$r%$%s%9%H!<%k$9$k%G%#%l%/%H%j(B
</p>
</dd>
<dt>--librubyver=PATH</dt>
<dd><p>
Ruby $B$NI8=`E:IU%i%$%V%i%j$,%$%s%9%H!<%k$5$l$k%G%#%l%/%H%j(B
</p>
</dd>
<dt>--librubyverarch=PATH</dt>
<dd><p>
Ruby $B$NI8=`E:IU3HD%%i%$%V%i%j$,%$%s%9%H!<%k$5$l$k%G%#%l%/%H%j(B
</p>
</dd>
<dt>--siteruby=PATH</dt>
<dd><p>
Ruby $B$N%P!<%8%g%s$K0MB8$7$J$$!"HsI8=`$N(B Ruby $B%i%$%V%i%j$,(B
$B%$%s%9%H!<%k$5$l$k%G%#%l%/%H%j(B (site_ruby)
</p>
</dd>
<dt>--siterubyver=PATH</dt>
<dd><p>
Ruby $B$N%P!<%8%g%s$K0MB8$9$k!"HsI8=`$N(B Ruby $B%i%$%V%i%j$,(B
$B%$%s%9%H!<%k$5$l$k%G%#%l%/%H%j(B ($B%P!<%8%g%s$D$-(B site_ruby)$B!#(B
</p>
</dd>
<dt>--siterubyverarch=PATH</dt>
<dd><p>
$BHsI8=`$N(B Ruby $B3HD%%i%$%V%i%j$,%$%s%9%H!<%k$5$l$k%G%#%l%/%H%j(B
($B%P!<%8%g%s!&%"!<%-%F%/%A%cL>$D$-(B site_ruby)$B!#(B
</p>
</dd>
<dt>--rubypath=PATH</dt>
<dd><p>
shebang $B9T(B (#!) $B$K%;%C%H$9$k(B Ruby $B%$%s%?%W%j%?$N%Q%9!#(B
$B$D$^$j!"%$%s%9%H!<%k$7$?%W%m%0%i%`$r<B9T$9$k$H$-$K(B
$B$3$N(B ruby $B$,;H$o$l$^$9!#(B
</p>
</dd>
<dt>--shebang=(all|ruby|never)</dt>
<dd><p>
shebang $B9T(B (#!) $B$N=q$-49$(%b!<%I$G$9!#(B
</p>
<p>
all: $B$9$Y$F$N%U%!%$%k$N(B shenbang $B9T$r=q$-49$($b$7$/$ODI2C$9$k!#(B
</p>
<p>
ruby: ruby $B$r5/F0$7$F$$$k$H;W$o$l$k(B shebang $B9T$@$1$r=q$-49$($k!#(B
</p>
<p>
never: $B$$$C$5$$(B shebang $B9T$r=q$-49$($J$$!#(B
</p>
</dd>
<dt>--rubyprog=PATH</dt>
<dd><p>
$B%$%s%9%H!<%k;~$K;H$&(B ruby $B%W%m%0%i%`$X$N%Q%9!#(B
</p>
</dd>
<dt>--makeprog=NAME</dt>
<dd><p>
$B3HD%%i%$%V%i%j$N%3%s%Q%$%k$K;HMQ$9$k(B make $B%W%m%0%i%`!#(B
</p>
</dd>
<dt>--without-ext</dt>
<dd><p>
$B3HD%%b%8%e!<%k$N%3%s%Q%$%k!&%$%s%9%H!<%k$rL5>r7o$K(B
$B%9%-%C%W$9$k!#$?$@$7EvA3$J$,$i!"%$%s%9%H!<%k$5$l$k(B
$B%W%m%0%i%`<+BN$,3HD%%b%8%e!<%k$J$7$GF0$/$h$&$K$J$C$F(B
$B$$$J$1$l$P0UL#$,$"$j$^$;$s!#(B
</p>
</dd>
<dt>--rbconfig=PATH</dt>
<dd><p>
$B%G%U%)%k%HCM$N@_Dj$K;H$&(B rbconfig.rb
</p>
</dd>
</dl>
<p>
$B$^$?%^%k%A%Q%C%1!<%8%"!<%+%$%V$G$O$3$l$K2C$($F0J2<$N%*%W%7%g%s$b;H$($^$9!#(B
</p>
<dl>
<dt>--with=NAME,NAME,NAME...</dt>
<dd><p>
$B%$%s%9%H!<%k$9$k%Q%C%1!<%8(B
</p>
</dd>
<dt>--without=NAME,NAME,NAME...</dt>
<dd><p>
$B%$%s%9%H!<%k$7$J$$%Q%C%1!<%8(B
</p>
</dd>
</dl>
<p>
$B$5$i$K!"!V(B--$B!W!J%^%$%J%9Fs$D!K$KB3$1$F%*%W%7%g%s$r;XDj$9$k$3$H$G(B
extconf.rb $B$K0z?t$rEO$9$3$H$,$G$-$^$9!#(B
</p>
<pre>
ruby setup.rb config -- --with-tklib=/usr/lib/libtk-ja.so.8.0
</pre>
<h2>install $B$N%?%9%/%*%W%7%g%s(B</h2>
<dl>
<dt>--no-harm</dt>
<dd><p>
$B5sF0$rI=<($9$k$@$1$G<B9T$7$^$;$s!#(B
</p>
</dd>
<dt>--prefix=PATH</dt>
<dd><p>
config $B$G7hDj$7$?%Q%9$N@hF,$K$5$i$K(B PATH $B$rIU2C$7$^$9!#(B
config --prefix $B$,%W%m%0%i%`$,<B9T$5$l$k$H$-$N%Q%9$G$"$k$N$K(B
$BBP$7!"(Binstall --prefix $B$O%W%m%0%i%`%U%!%$%k$r%3%T!<$9$k%Q%9$r(B
$B;XDj$7$^$9!#<g$K(B RPM $B$J$I$N%P%$%J%j%Q%C%1!<%8:n@.MQ$G$9!#(B
$B%G%U%)%k%H$O6uJ8;zNs$G$9!#(B
</p>
</dd>
</dl>

</body>
</html>
